<?php
class apiactionlog_mdl_erplog extends dbeav_model{

    function __construct($app){
        parent::__construct($app);
        $this->use_meta();
    }

    function save_log($data){
      if($data){
        $sql = "insert into sdb_apiactionlog_erplog (msg_id,task_name,calltime,status,worker,params,msg) values('{$data['msg_id']}','{$data['task_name']}','{$data['calltime']}','{$data['status']}','{$data['worker']}','{$data['params']}','{$data['msg']}')";
        $result = $this->db->exec($sql);
      }
    }
}
